草庐IT

javascript - ReactJS - 无法导入组件

全部标签

ruby-on-rails - 无法构建 gem native 扩展 — Rails 安装

我一直在根据edX在线类(class)的说明安装RubyonRails。这是终端命令的列表,以及相关的相应输出:$sudoapt-getinstallruby1.9.1安装成功$wgethttp://production.cf.rubygems.org/rubygems/rubygems-1.8.24.tgz$tarzxvfruby-1.8.24.tgz$cdruby-1..8.24$sudorubysetup.rbRubyGems1.8.24installed==1.8.24/2012-04-27*1bugfix:*Installthe.pemfilesproperly.Fixes#

ruby - therubyracer - Gem::Ext::BuildError: 错误:无法构建 gem native 扩展

我正在尝试在Mavericks上安装以下gem版本libv8(3.16.14.3)therubyracer(0.12.1)显然therubyracergems依赖于libv8。1)安装libv8什么是libv8?我的一点研究似乎表明它是谷歌浏览器使用的某种javascript库?我在安装时遇到了问题,但是thisgreatpost既有我的错误,也有关于如何绕过它的解释清楚的答案。所以我安装了libv8geminstalllibv8----with-system-v8据我了解,这会安装gem,但使用我本地系统安装的v8库,而不是...gem附带的版本?不管怎样,它是成功的。2)安装the

ruby-on-rails - 无法在 60 秒内获得稳定的 Firefox 连接 (127.0.0.1 :7055)

运行rspec测试时出现以下错误unabletoobtainstablefirefoxconnectionin60seconds(127.0.0.1:7055)inrails使用最新的ruby​​(1.9.2)和firefox(6.0)使用rspec-rails、capybara和其他几个gem,但它们似乎不是问题。这些测试在另一个环境(linux)中运行良好。 最佳答案 [更新-在2015|mdurrant|]我遇到了thisproblemlately.您应该升级到capybarav1.0.1以获得正确的seleniumwebdr

ruby-on-rails - 由于 readline 错误,无法执行 "rails console"

由于这个错误,我无法执行railsconsole:localhost:TwitterForZombieswiz$railsc/Users/wiz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/irb/completion.rb:9:in`require':dlopen(/Users/wiz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.2.1/readline.bundle,9):Librarynotloaded:/usr/local/opt/readline/lib/libre

ruby - 无法安装 RMagick 2.13.1。无法找到 MagickWand.h。

当我尝试安装rmagick时,我收到以下错误消息:Can'tinstallRMagick2.13.1.Can'tfindMagickWand.h.***extconf.rbfailed***CouldnotcreateMakefileduetosomereason,probablylackofnecessarylibrariesand/orheaders.Checkthemkmf.logfileformoredetails.Youmayneedconfigurationoptions.我在MacOSX10.6.8、ruby1.9.2p290、rvm1.10.2上。谁能帮我解决这个问题。

ruby-on-rails - 无法安装 gem - 无法构建 gem native 扩展 - 无法加载此类文件 -- mkmf (LoadError)

ruby1.9.3Gemfile部分#...............gem"pony"gem"bcrypt-ruby",:require=>"bcrypt"gem"nokogiri"#..................当我尝试安装gems时,出现错误alex@ubuntu:~/$bundleFetchinggemmetadatafromhttp://rubygems.org/.........Fetchinggemmetadatafromhttp://rubygems.org/..EnteryourpasswordtoinstallthebundledRubyGemstoyoursy

ruby - 无法在 OS X "El Capitan"上安装 gems

我无法在ElCapitanBeta5上安装和运行fakes3gem。我试过:sudogeminstallfakes3ERROR:Whileexecutinggem...(Errno::EPERM)Operationnotpermitted-/usr/bin/fakes3然后我尝试用cocoapods的方式来做。它适用于cocoapods但不适用于fakes3。mkdir-p$HOME/Software/rubyexportGEM_HOME=$HOME/Software/rubygeminstallcocoapods[...]1geminstalledgeminstallfakes3ER

ruby-on-rails - 无法安装 pg gem

我尝试使用geminstallpg但它似乎不起作用。geminstallpg给出这个错误TemporarilyenhancingPATHtoincludeDevKit...Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingpg:ERROR:Failedtobuildgemnativeextension.C:/Ruby/bin/ruby.exeextconf.rbcheckingforpg_config...noNopg_config...tryinganyway.Ifbuildingfails,ple

ruby-on-rails - PG::ConnectionBad - 无法连接到服务器:连接被拒绝

每次我运行rails4.0服务器时,我都会得到这个输出。StartedGET"/"for127.0.0.1at2013-11-0623:56:36-0500PG::ConnectionBad-couldnotconnecttoserver:ConnectionrefusedIstheserverrunningonhost"localhost"(::1)andacceptingTCP/IPconnectionsonport5432?couldnotconnecttoserver:ConnectionrefusedIstheserverrunningonhost"localhost"(12

ruby - 无法构建 gem native 扩展(安装 Compass)

当我尝试安装最新版本的compass(https://rubygems.org/gems/compass/versions/1.0.0.alpha.17)时,出现以下错误。ERROR:Errorinstallingcompass:ERROR:Failedtobuildgemnativeextension.ERROR:Errorinstallingcompass:ERROR:Failedtobuildgemnativeextension./System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/rubyextconf.r